package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class Loan here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Loan
{
    static int runningLoanId;
    private int id;
    private String description;
    private long deposit;
    private double price;
    private ArrayList<Sample> samples;
    
    public Loan(String _description, long _deposit, double _price)
    {
        samples = new ArrayList<Sample>();
        runningLoanId++;
        id = runningLoanId;
        description = _description;
        deposit = _deposit;
        price = _price;
    }
    public void setPrice (double _price)
    {
        price = _price;
    }
    public double getPrice()
    {
        return price;
    }
    public void setDescription(String _description)
    {
        description = _description;
    }
    public String getDescription()
    {
        return description;
    }
    public void setDeposit (long _deposit)
    {
        deposit = _deposit;
    }
    public long getDeposit()
    {
        return deposit;
    }
    public int getId()
    {
        return id;
    }
    public void addSample (Sample _sample)
    {
        samples.add(_sample);
    }
    public void removeSample(Sample _sample)
    {
        samples.remove(_sample);
    }
        


}
